package edu.cuit.springboot201.dao;

import edu.cuit.springboot201.model.StudentScore;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public class ScoreDaoMemoryImpl implements ScoreDao {

    private List<StudentScore> scoreList = new ArrayList<>();

    @Override
    public void saveScore(StudentScore score) {
        scoreList.add(score);
    }

    @Override
    public List<StudentScore> loadScore() {
        return scoreList;
    }
}
